package com.tsmti.basicdata.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * path：com.tsmti.lab.entity
 *
 * @author: ft
 * time: 2018/7/3 10:44
 * Description:
 */
@Entity
@Table(name = "PIMS_DOCTORINFORMATION")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class DoctorInformation extends BaseDataEntity<Long> {
    /**
     * id
     */
    private Long id;
    /**
     * 编号
     */
    private String code;
    /**
     * 姓名
     */
    private String name;
    /**
     * 等级
     */
    private Integer jobLevel;
    /**
     * 电话
     */
    private String tel;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 是否启用
     */
    private Integer enable;

    /**
     * 拼音码
     */
    private String spell;
    /**
     * 用户工号
     */
    private String userNo;
    /**
     * 部门
     */
    private String dept;
    /**
     * 手机
     */
    private String mobile;
    /**
     * 描述
     */
    private String description;
    /**
     * 其他编号
     */
    private String otherNo;
    /**
     * 备注
     */
    private String remark;
    /**
     * 五笔码
     */
    private String bdfivestroke;


    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PIMS_DOCTORINFORMATION")
    @SequenceGenerator(name = "SEQ_PIMS_DOCTORINFORMATION", sequenceName = "DOCTORINFORMATION_SEQUENCE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "CODE")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "JOBLEVEL")
    public Integer getJobLevel() {
        return jobLevel;
    }

    public void setJobLevel(Integer jobLevel) {
        this.jobLevel = jobLevel;
    }

    @Basic
    @Column(name = "TEL")
    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    @Basic
    @Column(name = "SORT")
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Basic
    @Column(name = "ENABLE")
    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    @Basic
    @Column(name = "SPELL")
    public String getSpell() {
        return spell;
    }

    public void setSpell(String spell) {
        this.spell = spell;
    }

    @Basic
    @Column(name = "USERNO")
    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    @Basic
    @Column(name = "DEPT")
    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    @Basic
    @Column(name = "MOBILE")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Basic
    @Column(name = "DESCRIPTION")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Basic
    @Column(name = "OTHERNO")
    public String getOtherNo() {
        return otherNo;
    }

    public void setOtherNo(String otherNo) {
        this.otherNo = otherNo;
    }

    @Basic
    @Column(name = "REMARK")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "BDFIVESTROKE")
    public String getBdfivestroke() {
        return bdfivestroke;
    }

    public void setBdfivestroke(String bdfivestroke) {
        this.bdfivestroke = bdfivestroke;
    }
}
